package cmcc.dbi.service;

import cmcc.dbi.dto.DbQueryDTO;
import cmcc.dbi.dto.ShellQueryDTO;
import cmcc.dbi.entity.InspectionItemRecord;
import com.alibaba.fastjson.JSONArray;
import com.jcraft.jsch.JSchException;

import java.sql.SQLException;
import java.util.List;

public interface InspectionRemoteConnService {

    /**
     * 获取巡检结果
     */
    JSONArray getRemoteSqlResult(List<InspectionItemRecord> scriptLists, DbQueryDTO dbQueryDTO) throws SQLException;

    JSONArray getRemoteShellResult(List<InspectionItemRecord> scriptLists, ShellQueryDTO shellQueryDTO) throws JSchException;
}
